package com.justnow.offer;

/**
 * @author justnow
 * Created on 2020-09-25
 * Description
 */
public class Sogou1 {

    public Interval solve (int n, int k, String str1, String str2) {
        // write code here
        Interval o = new Interval();

        //情形一，k与n相等
        if (k == n) {
            int number = 0;
            for (int i = 0; i < n; i++) {
                if (str1.charAt(i) == str2.charAt(i)) {
                    number++;
                }
            }

            o.start = number;
            o.end = number;
        }
        return o;
    }
}

class Interval {
    int start;
    int end;
}


